package com.bjc.eduservice.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program: guli_parent
 * @description: 远程调用order服务
 * @author: bjc
 * @create: 2020-11-21 15:49
 */
@Component
@FeignClient(value = "service-order",fallback = OrdersFeignClient.class)
public interface OrdersClient {

    /**
     * 根据课程id和用户id查询订单表中订单状态
     */
    @GetMapping(value = "/eduorder/order/isBuyCourse/{courseId}/{memberId}")
    public boolean isBuyCourse(@PathVariable("courseId") String courseId,@PathVariable("memberId") String memberId);
}
